﻿using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using YXQ.Dao;
using YXQ.IService;
using   YXQ.Dao.ViewModel;
namespace YXQ.Service 

{

  public class  MessageService : IMessageService

    {


     MessageDao dao=new MessageDao();


    #region IMessageService 成员

   public List<Y_Message> GetList(int startIndex, int maxRow, out int recordcount)
     {

       return dao.GetList(startIndex, maxRow,out recordcount);

     }


     #endregion


    #region IMessageService 成员

   public int Save(MessageModel obj)
     {

       return dao.Save(obj);

     }


     #endregion


   #region IMessageService 成员

   public MessageModel GetOneById(int id)
     {

        return dao.GetOneById(id);

     }


     #endregion

   #region IMessageService 成员
   public int DelById(int id)
     {

        return dao.DelById(id);

     }


     #endregion



   public List<MessageModel> GetListModel(string stwhr, int startIndex, int max, out int reco)
   {
       return dao.GetListModel(stwhr,startIndex,max,out reco);
   }
    }

 }

